Release 10.1A: OpenEdge Development:
Debugging and Troubleshooting


Run-time diagnostics

This section identifies various types of information that you can capture while the application is executing. Developers and technical support personnel should find this information useful.

Example 7–3 shows sample code execlog.p.

Example 7–3: Sample executable procedure  
execlog.p  
DEFINE VAR ix AS INT INIT 0. 
FOR EACH Customer BY Name: 
    DISPLAY Customer.Name. 
    ix = ix + 1. 
END. 
RUN internalA (ix). 
RUN execlog2.p (OUTPUT ix). 
DISPLAY ix. 
QUIT. 
PROCEDURE internalA: 
    DEFINE INPUT PARAMETER ii AS INT. 
    DISPLAY "Number of Customers is " ii. 
END. 
execlog2.p 
DEFINE OUTPUT PARAMETER ix AS INT. 
DO ix = 10 TO 20: 
    DISPLAY ix. 
END. 


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095